﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using fideeraSoft.DAOimpl;
using fideeraSoft.DAO;
using fideeraSoft.Entities;

namespace fideeraSoft.BO
{
    public class LoteBO
    {
        LoteDAO loteDao;
        
        public LoteBO()
        {
            loteDao = new LoteDAOSQLimpl();
        }

        public int buscarNuevoUltimoIdLoteEnBD()
        {
            return this.loteDao.buscarNuevoUltimoIdLoteEnBD();
        }

        public void altaLote(Lote lote)
        {
            this.loteDao.altaLote(lote);
        }

        public void eliminarLotePorId(int id)
        {
            this.loteDao.eliminarLotePorId(id);
        }

        public void eliminarTodosLosLotesEnDb()
        {
            this.loteDao.eliminarTodosLosLotesEnDb();
        }
    }
}
